package com.study.io.nio.demo;

import com.study.io.nio.demo.channel.SocketChannelDemo;

import java.io.IOException;

/**
 * NIO客户端
 */
public class SocketChannelTest {

    /**
     * 启动客户端测试
     *
     * @throws IOException
     */
    public static void main(String[] args) throws IOException {
        SocketChannelDemo client = new SocketChannelDemo();
        client.initClient("localhost", 8000);
        client.listen();
    }
}
